package com.dingreading.cloud.admin.feign;

import com.dingreading.cloud.admin.config.FeignConfig;
import com.dingreading.cloud.admin.feign.fallback.PayOkFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "mall-service", path = "/api/payOk", configuration = FeignConfig.class, fallback = PayOkFeignFallBack.class)
public interface PayOkFeignService {

    @GetMapping("/giftGoodsOrder")
    String giftGoodsOrder(
            @RequestParam(value = "headStaffUid") String headStaffUid,
            @RequestParam(value = "headStaffName") String headStaffName,
            @RequestParam(value = "orderCode") String orderCode,
            @RequestParam(value = "remark") String remark
    );

    @GetMapping("/selfGoodsOrder")
    String selfGoodsOrder(
            @RequestParam(value = "headStaffUid") String headStaffUid,
            @RequestParam(value = "headStaffName") String headStaffName,
            @RequestParam(value = "orderCode") String orderCode,
            @RequestParam(value = "remark") String remark
    );

    @GetMapping("/bankGoodsOrder")
    String bankGoodsOrder(
            @RequestParam(value = "headStaffUid") String headStaffUid,
            @RequestParam(value = "headStaffName") String headStaffName,
            @RequestParam(value = "orderCode") String orderCode,
            @RequestParam(value = "payTime") String payTime,
            @RequestParam(value = "remark") String remark
    );

}
